package com.tencent.examples.blueking.mysql.model;

import com.tencent.examples.blueking.mysql.extend.biz.SuperClassEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * 门店时间表
 */
@Entity
@Table(name = "bk_store_time")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BkStoreTime extends SuperClassEntity<BkStoreTime> {

    /**
     * 门店名称
     */
    private String storeName;
    /**
     * 门店id
     */
    private Long globalId;
    /**
     * 关联实列id
     */
    private Integer instId;
    /**
     * 星期几
     */
    private Integer dayOfWeekMon1Sun7;
    /**
     * 开店时间点
     */
    private String businessOpenTime;
    /**
     * 闭店时间点
     */
    private String businessCloseTime;
    /**
     * 开店日期
     */
    @Temporal(TemporalType.DATE)
    private Date beginDate;
    /**
     * 闭店日期
     */
    @Temporal(TemporalType.DATE)
    private Date endDate;
    /**
     * 开店时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    private Date openTime;
    /**
     * 闭店时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    private Date closeTime;

}
